<template>
    <div>
      <div id="nav">
        <!-- <h4>{title}</h4> -->
      </div>
      <div id="body">
        <div id="sider">
          <div><el-button @click="showimage">图片列表</el-button></div>
          <div><el-button @click="uploadimage">上传文件</el-button></div>
          <div><el-button @click="manageuser">用户管理</el-button></div>
          <div><el-button @click="logisticsmanage">物流管理</el-button></div>
        </div>
        <div id="content">
          <router-view/>
        </div>
      </div>
      
      <!-- <router-view/> -->
    </div>
  </template>
  <script>
  export default {
      data() {
         return {
          title:''
         }
      },
      methods: {
        showimage(e) {
          console.log(e.target);
          this.title = e.target.value;
          this.$router.push("/showimage");
        },
        uploadimage(e) {
          this.title = e.target.value;
          this.$router.push({
            path: "/submitpage",
          });
        },
        manageuser(e){
          this.title = e.target.value;
          this.$router.push({
            path: "/manageuser",
          });
        },
        logisticsmanage(e){
          this.title = e.target.value;
          this.$router.push({
            path:"/logisticsmanage"
          })
        }
      }
  }
  </script>
  <style>
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }
  #body{
    width:100%

  }
  #content{
    float: right;
    width:89%;
    /* background-color: blanchedalmond; */

  }
  #sider{
    float: left;
    width:10%;
    height:400px;
    padding-left: 10px;
    background-color: beige;
  }
  #sider div{
    padding-top: 20px;
    /* margin-top: 20px; */
  }
  #nav {
    width:100%;
    height:60px;
    background-color: aliceblue;
  }
  
  nav a {
    font-weight: bold;
    color: #2c3e50;
  }
  
  nav a.router-link-exact-active {
    color: #42b983;
  }
  </style>
  